package com.qf.dao;/*
 *保护你的大熊
 *2021/11/9
 *21:09
 */

import com.qf.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface UserMapper {

    /**
     * 根据用户id查询用户对象返回
     * @param id
     * @return
     */
    @Select("select * from t_users where id=#{id}")
    public User findUserById(@Param("id") Integer id);


    @Insert("insert into t_users (name,password,sex,birthday,registTime) " +
            " values(#{user.userName},#{user.password},#{user.sex},#{user.birthday},#{user.registTime})")
    public void insertUser(@Param("user") User user);


}
